package simple05;

//单列模式
public class Simple {
    public static void main(String[] args) {
//        营业人数
//        SessionCount sessionCount = SessionCount.getInstance();
//        SessionCount2 sessionCount = SessionCount2.getInstance();\
        SessionCount2 sessionCount = SessionCount2.getInstance2();

        sessionCount.plus();
        sessionCount.showMessage();

        sessionCount.plus();
        sessionCount.showMessage();

        sessionCount.decrease();
        sessionCount.showMessage();
    }
}
